package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 供应厂商对象 slope_supplier
 *
 * @author codegeek
 * @date 2020-02-17
 */
@Data
public class SlopeSupplier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long supplierId;

    /**
     * supplier_name
     */
    @Excel(name = "供应商名称")
    private String supplierName;

    /**
     * 供应商描述
     */
//    @Excel(name = "供应商描述")
    private String supplierDesc;

    /**
     * 供应商负责人
     */
    @Excel(name = "供应商负责人")
    private String supplierRepo;

    /**
     * 供应商联系方式
     */
    @Excel(name = "供应商联系方式")
    private String supplierPhone;

    /**
     * 供应商大致地址
     */
    @Excel(name = "供应商省市区")
    private String supplierRoughlyAddress;

    /**
     * 供应商详细地址
     */
    @Excel(name = "供应商详细地址")
    private String supplierDetailedAddress;

    /**
     * 供应商网址
     */
    @Excel(name = "供应商网址")
    private String supplierUrl;

    @Excel(name = "启用状态:0-启用 1-禁用")
    private String isValid;

    public void setSupplierName(String supplierName) {
        this.supplierName = new ReplaceIllegalChar().replace(supplierName);
    }

    public void setSupplierDesc(String supplierDesc) {
        this.supplierDesc = new ReplaceIllegalChar().replace(supplierDesc);
    }

    public void setSupplierRepo(String supplierRepo) {
        this.supplierRepo = new ReplaceIllegalChar().replace(supplierRepo);
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = new ReplaceIllegalChar().replace(supplierPhone);
    }

    public void setSupplierRoughlyAddress(String supplierRoughlyAddress) {
        this.supplierRoughlyAddress = new ReplaceIllegalChar().replace(supplierRoughlyAddress);
    }

    public void setSupplierDetailedAddress(String supplierDetailedAddress) {
        this.supplierDetailedAddress = new ReplaceIllegalChar().replace(supplierDetailedAddress);
    }

    public void setSupplierUrl(String supplierUrl) {
        this.supplierUrl = new ReplaceIllegalChar().replace(supplierUrl);
    }

    public void setIsValid(String isValid) {
        this.isValid = new ReplaceIllegalChar().replace(isValid);
    }
}
